﻿<%@ Register TagPrefix="ddsc" Namespace="ddscControlLibrary" Assembly="ddscControlLibrary" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="bulletin_pop.aspx.cs" Inherits="smasb2b.bulletin_pop" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>長榮航空採購資訊網-EVAAIR Procurement Information</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="/smasb2b/css/popup.css" type="text/css" rel="stylesheet">    
    <base target="_self">    
</head>
<body id="now_item_2" style="BACKGROUND-IMAGE: url(images/bg.jpg)">
    <div style="overflow: scroll; height: 820px; width: 100%;">
        <form id="bulletin_pop" runat="server">
            <form action="" method="post" name="form1">
                <table class="tableStyle2" id="table1" cellspacing="0" cellpadding="0" width="680" bgcolor="#fcfce2"
                    border="0">
                    <tr>
                        <td valign="top" align="left" width="680">
                            <table class="nonPrinted" cellspacing="0" cellpadding="0" width="680" border="0">
                                <tr>
                                    <td>
                                        <img id="Img2" height="60" src="/smasb2b/images/chin/title/title_bulletin.jpg"
                                            width="680" runat="server"></td>
                                </tr>
                                <tr>
                                    <td class="mainBG" valign="top" align="center" colspan="3">
                                        <table class="poptable" id="table15" cellspacing="0" cellpadding="0" width="650" border="0">
                                            <tr>
                                                <th align="center" colspan="2">
                                                    <ddsc:InputBoxCtrl ID="txtHEAD" runat="server" EnableView="True" Width="133px"></ddsc:InputBoxCtrl></th>
                                            </tr>
                                            <tr>
                                                <td class="f1" valign="top" width="86">
                                                    <asp:Label ID="lblPURCHASE_NO" runat="server">採購編號</asp:Label>:
                                                </td>
                                                <td class="f2" valign="top" align="left" width="450">
                                                    <ddsc:InputBoxCtrl ID="txtPURCHASE_NO" runat="server" EnableView="True" Width="352px"></ddsc:InputBoxCtrl></td>
                                            </tr>
                                            <tr>
                                                <td class="f1color" valign="top" width="86">
                                                    <asp:Label ID="lblPURCHASE_TEXT" runat="server">採購內容</asp:Label>&nbsp;:
                                                </td>
                                                <td class="f2" valign="top" align="left">
                                                    <ddsc:InputBoxCtrl ID="txtPURCHASE_TEXT" runat="server" EnableView="True" Width="504px" TextMode="MultiLine"></ddsc:InputBoxCtrl></td>
                                            </tr>

                                            <tr>
                                                <td class="f1" valign="top" height="70" width="86">
                                                    <asp:Label ID="lblPURCHASE_SPEC" runat="server">採購數量及規格</asp:Label>:
                                                </td>
                                                <td class="f2" valign="top" align="left" height="70">
                                                    <ddsc:InputBoxCtrl ID="txtPURCHASE_SPEC" runat="server" EnableView="True" Width="504px" TextMode="MultiLine"
                                                        Height="70px"></ddsc:InputBoxCtrl></td>
                                            </tr>
                                            <tr id="DOCUMENT_TR" runat="server">
                                                <td class="f1" valign="top" width="86">
                                                    <asp:Label ID="lblPURCHASE_DOCUMENT" runat="server">採購內容</asp:Label>
                                                    :</td>
                                                <td class="f2" valign="top" align="left">
                                                    <a href="javascript: DownLoadFile('/smasb2b/DOWN_PURCHASE_DOCUMENT.aspx?purchase_no=<%= (dynamic)Request["purchase_no"]%>&amp;version=<%= (dynamic)Request["version"]%>')">
                                                        <asp:Label ID="lblDOWN_DOCUMENT" ForeColor="Blue" Font-Underline="True" runat="server">下載附件</asp:Label></a></td>
                                            </tr>
                                            <tr>
                                                <td class="f1color" valign="top" width="86"><span class="p1">
                                                    <asp:Label ID="lblEND_DATE" runat="server">採購內容</asp:Label>:</span>
                                                </td>
                                                <td class="f2" valign="top" align="left"><span class="h2">
                                                    <ddsc:InputBoxCtrl ID="txtEND_DATE" runat="server" EnableView="True" Width="392px"></ddsc:InputBoxCtrl>
                                                </span></td>
                                            </tr>
                                            <tr>
                                                <td class="f1" valign="top" width="86">
                                                    <asp:Label ID="lblPAY_TYPE" runat="server">採購內容</asp:Label>
                                                    :</td>
                                                <td class="f2" valign="top" align="left">
                                                    <ddsc:InputBoxCtrl ID="txtPAY_TYPE" runat="server" EnableView="True" Width="376px"></ddsc:InputBoxCtrl></td>
                                            </tr>
                                            <tr>
                                                <td class="f1color" valign="top" width="86">
                                                    <asp:Label ID="lblDELIVERY_TYPE" runat="server">採購內容</asp:Label>
                                                    :</td>
                                                <td class="f2" valign="top" align="left">
                                                    <ddsc:InputBoxCtrl ID="txtDELIVERY_TYPE" runat="server" EnableView="True" Width="376px"></ddsc:InputBoxCtrl></td>
                                            </tr>
                                            <tr>
                                                <td class="f1" valign="top" width="86">
                                                    <asp:Label ID="lblDELIVERY_ADDRESS" runat="server">採購內容</asp:Label>
                                                    :</td>
                                                <td class="f2" valign="top" align="left">
                                                    <ddsc:InputBoxCtrl ID="txtDELIVERY_ADDRESS" runat="server" EnableView="True" Width="376px"></ddsc:InputBoxCtrl></td>
                                            </tr>
                                            <tr>
                                                <td class="f1color" valign="top" width="86">
                                                    <asp:Label ID="lblSUPPLY_CONDITION" runat="server">採購內容</asp:Label>
                                                    :</td>
                                                <td class="f2" valign="top" align="left">
                                                    <ddsc:InputBoxCtrl ID="txtSUPPLY_CONDITION" runat="server" EnableView="True" Width="376px"></ddsc:InputBoxCtrl></td>
                                            </tr>
                                            <tr>
                                                <td class="f1" valign="top" width="86">
                                                    <asp:Label ID="lblCONTACT_NAME" runat="server">採購內容</asp:Label>
                                                    :</td>
                                                <td class="f2" valign="top" align="left">
                                                    <ddsc:InputBoxCtrl ID="txtCONTACT_NAME" runat="server" EnableView="True" Width="376px"></ddsc:InputBoxCtrl></td>
                                            </tr>
                                            <tr>
                                                <td class="f1color" valign="top" width="86">
                                                    <asp:Label ID="lblCONTACT_ADDRESS" runat="server">採購內容</asp:Label>
                                                    :</td>
                                                <td class="f2" valign="top" align="left">
                                                    <asp:Label ID="lblMSG051" runat="server">採購內容</asp:Label>
                                                    <br>
                                                    <asp:Label ID="lblMSG052" runat="server">採購內容</asp:Label></td>
                                            </tr>
                                            <tr>
                                                <td class="f1" valign="top" width="86">
                                                    <asp:Label ID="lblCONTACT_TEL" runat="server">採購內容</asp:Label>
                                                    :</td>
                                                <td class="f2" valign="top" align="left">
                                                    <ddsc:InputBoxCtrl ID="txtCONTACT_TEL" runat="server" EnableView="True" Width="376px"></ddsc:InputBoxCtrl></td>
                                            </tr>
                                            <tr>
                                                <td class="f1color" valign="top" width="86">
                                                    <asp:Label ID="lblCONTACT_EMAIL" runat="server">採購內容</asp:Label>
                                                    :</td>
                                                <td class="f2" valign="top" align="left">
                                                    <ddsc:InputBoxCtrl ID="txtCONTACT_EMAIL" runat="server" EnableView="True" Width="376px" IsAllowLower="True"></ddsc:InputBoxCtrl></td>
                                            </tr>
                                            <tr>
                                                <td class="f1" valign="top" width="86">
                                                    <asp:Label ID="lblREMARK_TEXT" runat="server">採購內容</asp:Label>
                                                    :</td>
                                                <td class="f2" valign="top" align="left">
                                                    <ddsc:InputBoxCtrl ID="txtREMARK_TEXT" runat="server" EnableView="True" TextMode="MultiLine" Width="504px"
                                                        Height="70px"></ddsc:InputBoxCtrl></td>
                                            </tr>

                                            <tr id="IMAGE_TR" runat="server">
                                                <td class="f1" valign="top" width="86">
                                                    <asp:Label ID="lblPURCHASE_IMAGE" runat="server">採購物品圖片</asp:Label>
                                                    :</td>
                                                <td class="f2" valign="top" align="left">
                                                    <!-- 查詢清單 -->
                                                    <iframe class="grid" id="datalist" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; WIDTH: 100%; BORDER-BOTTOM: 1px solid; HEIGHT: 440px"
                                                        src='bulletin_Image.aspx?purchase_no=<%=(dynamic)Request["purchase_no"]%>&amp;version=<%=(dynamic)Request["version"]%>' frameborder="0" scrolling="auto"></iframe>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" valign="baseline" align="right" width="680">
                                                    <!--<a href='#' onclick="javascript:this.close;window.showModalDialog('/smasb2b/VND/VNDW0031.aspx?action_type=BULLETIN&amp;PURCHASE_NO=<%=(dynamic)g_szPURCHASE_NO%>',this,'dialogWidth=800px;dialogHeight=740px;scrollbars=no;center=yes;border=thin;help=no;status=no;resizable=no;', true)">-->

                                                    <a onclick="javascript:this.close;window.open('/smasb2b/VND/Supply_Agreement.aspx?action_type=BULLETIN&amp;PURCHASE_NO=<%=(dynamic)g_szPURCHASE_NO%>',this,'dialogWidth=800px;dialogHeight=740px;center=yes;border=thin;help=no;status=no;resizable=no;', true)">
                                                        <asp:Label ID="lblBULLETIN" runat="server" ForeColor="Blue" Font-Underline="True">登錄採購公告物品</asp:Label></a>
                                                    <img height="14" src="/smasb2b/images/icon_print.gif" width="14" border="0">&nbsp;
									<a class="menu" href="javascript:window.print()">
                                        <asp:Label ID="lblPRINTPAGE" ForeColor="Blue" Font-Underline="True" runat="server">列印本頁</asp:Label></a>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="mainBG" valign="top" align="center" colspan="3">
                                        <table class="poptable" id="table16" cellspacing="0" cellpadding="0" width="680" border="0">
                                        </table>
                                    </td>
                                </tr>
                                <tr class="nonPrinted">
                                </tr>
                            </table>
                            <iframe id="DownFile" style="BORDER-RIGHT: 0px solid; BORDER-TOP: 0px solid; BORDER-LEFT: 0px solid; WIDTH: 0%; BORDER-BOTTOM: 0px solid; HEIGHT: 0%"
                                src="DOWN_PURCHASE_DOCUMENT.aspx" frameborder="0" scrolling="no"></iframe>

                            <script>
                                window.onload = PageLoad;

                                function PageLoad() {
                                    //var select1 = self.datalist.bulletin_Image;
                                    //if (select1 != undefined) {
                                    //    if (select1.document.all.hidIMAGE.value == "N") {
                                    //        document.all.IMAGE_TR.style.display = "none";
                                    //    }
                                    //}                                    

                                    //Tony:修改為jQuery版本 , Adams FIX 2014/7/9                               
                                    $select1 = $('#datalist').contents().find("#bulletin_Image");
                                    if ($select1 != undefined) {
                                        var hide = $('#datalist').contents().find("#hidIMAGE");
                                        if (hide.val()) {
                                            $("#IMAGE_TR").css("display", "none");
                                        }
                                    }
                                }

                                function DownLoadFile(url) {
                                    //document.all.DownFile.src = url;
                                    $("#DownFile").attr("src", url);

                                }

                            </script>
            </form>
            </TD>
					
			</TR>
		</table>
        </form>
    </div>
</body>
</html>

